from web_module.router import do_post, do_get
from common.api.tornado_handler import RequestHandler
from common.utils.session import session


class MainHandler(RequestHandler):

    @session
    def post(self, module, handler, func, *args, **kwargs):
        do_post(self, module, handler, func, args, kwargs)

    @session
    def get(self, module, handler, func, *args, **kwargs):
        do_get(self, module, handler, func, args, kwargs)
